package tmproject.hlhj.fhp.cartrans.customVIews

import android.app.Dialog
import android.content.Context
import android.os.Bundle
import kotlinx.android.synthetic.main.dialog_sex.*
import tmproject.hlhj.fhp.cartrans.R

/**
 * Created by Never Fear   on 2018\9\4 0004.
Never More....
 */
class SexPop(c:Context,private val lisener:OnSexChooseListener) :Dialog(c, R.style.MyDialog) {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.dialog_sex)
        btF.setOnClickListener {
            lisener.f()
            dismiss()
        }
        btM.setOnClickListener {
            lisener.m()
            dismiss()

        }
    }

    interface OnSexChooseListener{
        fun m()
        fun f()
    }
}